home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
DialogBoxEditor.h
< prev
next >
Wrap
Text File
|
1996-12-24
|
2KB
|
75 lines
/*
* File: DialogBoxEditor.h
* Summary: A view that knows how to edit a TDialogBox.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 12/24/96 JDJ Created
*/
#pragma once
#include <ZDialogBox.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditDialogBoxCommand
// ===================================================================================
class CEditDialogBoxCommand : public CBaseEditPaneCommand<TDialogBox, SDialogBoxInfo> {
typedef CBaseEditPaneCommand<TDialogBox, SDialogBoxInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditDialogBoxCommand();
CEditDialogBoxCommand(TDialogBox* pane, const SDialogBoxInfo& oldInfo, const SDialogBoxInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SDialogBoxInfo& newInfo);
};
// ===================================================================================
// CDialogBoxEditor
// ===================================================================================
class CDialogBoxEditor : public CBasePaneEditor<TDialogBox, SDialogBoxInfo, CEditDialogBoxCommand> {
typedef CBasePaneEditor<TDialogBox, SDialogBoxInfo, CEditDialogBoxCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CDialogBoxEditor();
CDialogBoxEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SDialogBoxInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SDialogBoxInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};